

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>添加修改</title>
    {include file="include/top"}
    <style>
        .layui-form-item .layui-input-inline{width: 80%;}
        #LAY_layedit_2{background: #fff;}
    </style>
</head>
<body>

<div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-app-form-tags" style="padding: 20px 0 0 0;">

    {include file="include/selectsearch" ctype='layui-form-item' title="分类" classname='cids' optionHtml='<?php echo isset($cids)?$cids:"";?>' }
    {include file="include/input" class2='layui-form-item' type='text' title="名称" name='title' value='<?php echo isset($data["title"])?$data["title"]:"";?>'}
    {include file="include/input" class2='layui-form-item' type='text' title="应用key" name='appKey' value='<?php echo isset($data["appKey"])?$data["appKey"]:"";?>'}
    {include file="include/input" class2='layui-form-item' type='text' title="密钥secret" name='secret' value='<?php echo isset($data["secret"])?$data["secret"]:"";?>'}
    {include file="include/input" class2='layui-form-item' type='text' title="渠道编码" name='supplierCode' value='<?php echo isset($data["supplierCode"])?$data["supplierCode"]:"";?>'}
    {include file="include/input" class2='layui-form-item' type='text' title="接口URL" name='apiUrl' value='<?php echo isset($data["apiUrl"])?$data["apiUrl"]:"";?>'}
    {include file="include/input" class2='layui-form-item' type='text' title="测试URL" name='apiUrlTest' value='<?php echo isset($data["apiUrlTest"])?$data["apiUrlTest"]:"";?>'}
    {include file="include/input" class2='layui-form-item' type='text' title="接口ID" name='apiID' value='<?php echo isset($data["apiID"])?$data["apiID"]:"";?>'}

    <div class="layui-form-item">
        <label class="layui-form-label">通讯方式</label>
        <div class="layui-input-inline">
            <select name="postType" lay-search="" lay-filter="postType" lay-search>
                <option value="">选择通讯方式</option>
                <option value="1" <?php if(isset($data['postType']) && $data['postType']==1){ echo 'selected';}?>>密钥通讯</option>
                <option value="2" <?php if(isset($data['postType']) && $data['postType']==2){ echo 'selected';}?>>Token</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-inline">
            <select name="status" lay-search="" lay-filter="cid" lay-search>
                <option value="1" <?php if(isset($data['status']) && $data['status']==1){ echo 'selected';}?>>正常</option>
                <option value="-1" <?php if(isset($data['status']) && $data['status']==-1){ echo 'selected';}?>>删除</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">运行模式</label>
        <div class="layui-input-inline">
            <select name="develop" lay-search="" lay-filter="cid" lay-search>
                <option value="1" <?php if(isset($data['develop']) && $data['develop']==1){ echo 'selected';}?>>生产模式</option>
                <option value="-1" <?php if(isset($data['develop']) && $data['develop']==-1){ echo 'selected';}?>>测试模式</option>
            </select>
        </div>
    </div>
</div>

{include file="include/js"}
<script>
    layui.config({
        base: '/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','form','layedit'],function () {
        var $=layui.$;
        var form=layui.form;
    });
</script>
</body>
</html>